package com.zt.english.fragment

import android.os.Bundle
import android.view.View
import com.zt.english.R
import com.zt.mvvm.view.BaseFragmentA

class StudyFragment : BaseFragmentA() {
    override fun setLayoutResId(): Int = R.layout.fragment_study

    override fun initView(rootView: View?, savedInstanceState: Bundle?) {

    }
    companion object{
        private var instance :StudyFragment? = null
            get() {
                if(field==null){
                    field = StudyFragment()
                }
                return field
            }
        //在Kotlin中，如果你需要将方法声明为同步，需要添加@Synchronized注解。
        @Synchronized
        fun getFragmentInstance(): StudyFragment {
            return instance!!
        }
    }
}